home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
SLIDEBOX.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
3KB
|
83 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_SlideBox( cDir, nTmax, nLMax, nBMax, nRMax, nType, cFill, lShadow ) --> NIL
PARAMETERS:
cDir : Direction of "slide" U/D/L/R
nTMax : Top Row
nLMax : Left Column
nBMax : Bottom Row
nRMax : Right Column
nType : Type of Box Characters to use
cFill : Character to use to fill box (Default SPACE)
lShadow : Logical TRUE = Draw shadow after box (DEFAULT)
FALSE = No Shadow
SHORT:
Displays a "sliding" exploding box from any direction (ala popbox()).
DESCRIPTION:
_SlideBox() "explodes" a box onto the screen starting at the top,
bottom, left, or right of the box, (depending upon cDir) stopping at the
given coordinates. Optionally, you may specify the box characters.
Default box is Double Top/Single Side.
NOTE:
Due to the different CPU speeds of various computers, the box may "explode"
so fast as to be unnoticeable. This can be controlled by use of a
DOS environment variable
SET BOXDELAY=6000
Also, since the screen coordinate system is over three times wider than it
is high, the verticle motion is complete much sooner than the
horizontal motion. This may be a desired effect (having the box quickly
reach verticle limits and then panning horizontally for the remainder).
If not, you can adjust it by setting a DOS environment variable
called BOXRATIO.
SET BOXRATIO=3
A setting of 3 will cause the verticle and horizontal motion to end at
almost the same time. A value greater than 4 will cause the horizontal
motion to finish first and the remaining time will be spent completing
the verticle motion. A value less than four has the opposit effect.
These values are detected if present and used as a delay factor between
each step of the "explosion" to slow the process down on fast computers,
and delay the horizontal motion to match the verticle motion.
Do not use fractional numbers (non-integers) for the boxdelay variable.
Doing so will result in occasional "escapes" of the box from it's
final coordinates. It will continue to explode further than desired.
Be aware of how the Boxratio is affected by the "evenness/oddness" of
the total range of the final box coordinates and the fact that the
screen columns are numbered 0-79.
A Box whose coordinates are an even number in terms of total range will have
a starting center that is one to the left or right of center. This means
that one side will finish just slightly sooner than the other.
5,5 to 12,75 = 70 total places to span.
Half of 70 is 35.
In full speed motion, this trait is barely a flicker, and hardly noticeable.
But on slower machines, it may look odd.
EXAMPLE:
_SlideBox('D',10,10,15,70)
Result: A box is drawn, "sliding" DOWN from line 10 to line 15.
******************************************************************************/